<admintpl file="header"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
  <ul class="nav nav-tabs">
     <li class="active"><a href="{:U('Feedback/index')}">用户反馈</a></li>
  </ul>
  <form class="form-horizontal J_ajaxForm" action="{:U('Feedback/index')}" method="post">
    <div class="table_list">
      <div class="p10"><div class="pages"> {$Page} </div> </div>
      <table width="100%" class="table table-hover">
        <thead>
          <tr>
            <th width="50">ID</th>
            <th width="100">所属板块</th>
            <th>内容</th>
            <th>处理信息</th>
            <th width="50">状态</th>
            <th>ID：用户昵称</th>
            <th width="70">发布时间</th>
          </tr>
        </thead>
        <foreach name="lists" item="vo">
        	<tr>
				<td>{$vo.id}</td>
		        <td>
		        		<foreach name="class" item="clas">
		        			<if condition="$vo['parentid'] eq $clas['id']">
			        			{$clas.title}
		        			</if>
		                </foreach>
		        </td>
				<td>{$vo.description|msubstr=0,64}</td>
				<td>{$vo.extraDesc}</td>
				
            	<td>
					<if condition="$vo['status'] lt 100">
						<a href="{:U('Feedback/acceptance',array('id'=>$vo['id']))}">查看受理</a>
					<else />
						<a href="{:U('Feedback/acceptance',array('id'=>$vo['id'],'p'=>$_GET['p']))}"style="color: #FF0000;"><b>未受理</b></a>
					</if>
            	</td>
				<td class='emoji'>
		        		<foreach name="users" item="user">
				        			<if condition="$vo['userid'] eq $user['id']">
				        					<if condition="$vo['userid'] gt 0">
							        			用户ID：{$vo.userid}<br>
													<php> 
														$base64 = $user['nickname'];
												 	echo $base64 = preg_replace_callback ( '/@E(.{6}==)/', function ($r) {
																	return base64_decode ( $r [1] );
															}, $base64 );
														$uid = $user['id'];
													</php>
						              <else />
						                		匿名用户
						        			</if>
				        			</if>
		                </foreach>
		        </td>
				<td>{$vo.created}</td>
			</tr>
        </foreach>
        <thead>
          <tr>
            <th width="50">ID</th>
            <th width="100">所属板块</th>
            <th>内容</th>
            <th>处理信息</th>
            <th width="50">状态</th>
            <th>ID：用户昵称</th>
            <th width="70">发布时间</th>
          </tr>
        </thead>
      </table>
      <div class="p10"><div class="pages"> {$Page} </div> </div>
    </div>
  </form>
</div>
<script type="text/javascript" src="__ROOT__/statics/js/common.js"></script>
<script type="text/javascript" src="__ROOT__/statics/js/content_addtop.js"></script>
<script>
setCookie('refersh_time', 0);
function refersh_window() {
    var refersh_time = getCookie('refersh_time');
    if (refersh_time == 1) {
        window.location.reload();
    }
}
setInterval(function(){
	refersh_window()
}, 2000);

$('.emoji').emoji();
</script>
</body>
</html>